package com.sfddata.musicpillow.oauth.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class TestEncode {


    public static void main(String[] args) {
        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();

        boolean matches = bCryptPasswordEncoder.matches("123456", "$2a$10$IgErTTNbDCCNuZTLsu4xYOWsggfXMYkJCs93nhK1TQ5Efq63s94Ca");

        System.out.println(bCryptPasswordEncoder.encode("123456"));
    }
}
